@import "../../common/activity/act_com";
@import "../../common/activity/pop_user";
@import "../../common/activity/cropper";
/* 背景色 */
body {
  background-color: #FF9c33;
}

header {
  .banner_img {
    width: 100%;
    img {
      width: 100%;
    }
  }
  .activity_slogan {
    display: flex;
    justify-content: center;
    h1 {
      width: 80%;
      text-align: center;
      color: #fff;
      font-size: rem(20);
      line-height: rem(30);
    }
  }
}

content {
  .w {
    margin: 0 rem(15);
    padding: 0;
  }
}

.activity_countdown {
  background-color: #ffd280;
  border-radius: rem(5) rem(5) rem(0) rem(0);
  position: relative;
  margin-top: rem(30);
  .cup_icon {
    position: absolute;
    left: 50%;
    top: rem(-22);
    width: rem(40);
    height: rem(40);
    border-radius: 50%;
    background-color: #ffd280;
    margin-left: rem(-20);
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width: 50%;
    }
  }
  p {
    text-align: center;
    color: #333;
    line-height: rem(50);
    height: rem(50);
    font-size: rem(14);
    letter-spacing: 1px;
    .end_word {
      color: #f35625;
      border-radius: rem(2);
      padding: 0 rem(3);
    }
    .dynamic_time span {
      color: #f35625;
      border-radius: rem(2);
      padding: 0 rem(3);
    }
  }
}

.activity_msg {
  border-radius: rem(0) rem(0) rem(5) rem(5) !important;
}

.vote_msg {
  display: flex;
  flex-direction: column;
  > div {
    display: flex;
    justify-content: space-between;
    font-size: rem(16);
    line-height: rem(30);
  }
  div:last-child {
    color: #666;
  }
}

.search {
  display: flex;
  padding-top: rem(10);
  div {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    input {
      height: rem(40);
      border-radius: rem(5) 0 0 rem(5);
      width: 100%;
      border: 1px solid #fff;
      text-align: center;
      background-color: #fff;
    }

  }
  a {
    width: rem(50);
    text-align: center;
    line-height: rem(40);
    color: #fff;
    flex-shrink: 0;
    background-color: #e5e5e5;
    border-radius: 0 rem(5) rem(5) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    div {
      position: relative;
      left: 0;
      top: 0;
      max-width: rem(16);
      height: rem(16);
      border-radius: 50%;
      border: 1px solid #333;
    }
    div:after {
      position: absolute;
      width: rem(10);
      height: 1px;
      background-color: #333;
      transform: rotate(45deg);
      content: "";
      left: rem(12);
      top: rem(18);
    }
  }
}

/* 搜索结果 */
.search_result {
  p {
    text-align: center;
    line-height: rem(30);
  }
  .have_result {
    > ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      li {
        background-color: #fff;
        width: rem(150);
        margin: rem(5);
        padding-bottom: rem(20);
        position: relative;
        left: 0;
        top: 0;
        .order {
          position: absolute;
          top: 0;
          right: 0;
          background-color: rgba(51, 51, 51, 0.7);
          height: rem(25);
          line-height: rem(25);
          font-size: rem(14);
          color: #fff;
          padding: 0 rem(10);
        }
        .works_name {

          display: -webkit-box; /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
          display: -moz-box; /* 老版本语法: Firefox (buggy) */
          display: -ms-flexbox; /* 混合版本语法: IE 10 */
          display: -webkit-flex; /* 新版本语法: Chrome 21+ */
          display: flex; /* 新版本语法: Opera 12.1, Firefox 22+ */
          justify-content: space-between;
          color: #666;
          line-height: rem(30);
          padding: rem(5);
          height: rem(30);
          p:first-child {
            overflow: hidden;
            flex-grow: 0;
            width: rem(80);
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          span {
            color: #f35625;
          }

        }
        div:last-child {
          margin: 0 auto;
          border: 1px solid #fd8403;
          color: #fd8403;
          border-radius: rem(2);
          font-size: rem(16);
          text-align: center;
          line-height: rem(25);
          height: rem(25);
          width: rem(100);
          a {
            display: inline-block;
            width: 100%;
            height: 100%;
            color: inherit;
          }
        }
      }
    }
  }
}

.sort_order {
  margin-top: rem(20);
  ul {
    display: flex;
    border: 1px solid #fc9b32;
    border-radius: rem(5);
    overflow: hidden;
    li {
      flex-grow: 1;
      text-align: center;
      line-height: rem(30);
      color: #fc9b32;
      border-right: 1px solid #fc9b32;
      font-size: rem(16);
      a {
        color: inherit;
      }
    }
    li.select {
      background-color: #fc9b32;
      color: #fff;
    }
    li:last-child {
      border: none;
    }
  }
}

#rank_nav {
  border-radius: rem(2);
  border: 1px solid #fc9b32;
  margin: 0 auto;
  width: rem(180);
  display: flex;
  height: rem(25);
  line-height: rem(25);
  margin-top: rem(15);
  li:first-child {
    border-right: 1px solid #fc9b32;
  }
  li {
    color: #fc9b32;
    flex-grow: 1;
    text-align: center;
  }
  li.select {
    background-color: #fc9b32;
    color: #fff;
  }
}

.game_works {
  > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: rem(10);
    li {
      background-color: #fff;
      width: rem(150);
      margin: rem(5);
      padding-bottom: rem(20);
      position: relative;
      left: 0;
      top: 0;
      .order {
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgba(51, 51, 51, 0.7);
        height: rem(25);
        line-height: rem(25);
        font-size: rem(14);
        color: #fff;
        padding: 0 rem(10);
      }
      .works_name {
        display: flex;
        justify-content: space-between;
        color: #666;
        line-height: rem(30);
        padding: rem(5);
        height: rem(30);
        p:first-child {
          overflow: hidden;
          flex-grow: 0;
          width: rem(80);
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        span {
          color: #f35625;
        }

      }
      div:last-child {
        margin: 0 auto;
        border: 1px solid #fd8403;
        color: #fd8403;
        border-radius: rem(2);
        font-size: rem(16);
        text-align: center;
        line-height: rem(25);
        height: rem(25);
        width: rem(100);
        a {
          display: inline-block;
          width: 100%;
          height: 100%;
          color: inherit;
        }
      }
    }
  }
}

.rank_game_works {
  display: none;
  ul.picture_rank {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: rem(10);
    li {
      background-color: #fff;
      width: rem(150);
      margin: rem(5);
      padding-bottom: rem(20);
      position: relative;
      left: 0;
      top: 0;
      .order {
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgba(51, 51, 51, 0.7);
        height: rem(25);
        line-height: rem(25);
        font-size: rem(14);
        color: #fff;
        padding: 0 rem(10);
      }
      .works_name {
        display: flex;
        justify-content: space-between;
        color: #666;
        line-height: rem(30);
        padding: rem(5);
        height: rem(30);
        p:first-child {
          overflow: hidden;
          flex-grow: 0;
          width: rem(80);
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        span {
          color: #f35625;
        }

      }
      .cast_vote {
        margin: 0 auto;
        border: 1px solid #fd8403;
        color: #fd8403;
        border-radius: rem(2);
        font-size: rem(16);
        text-align: center;
        line-height: rem(25);
        height: rem(25);
        width: rem(100);
        a {
          display: inline-block;
          width: 100%;
          height: 100%;
          color: inherit;
        }
      }
      .medal {
        position: absolute;
        left: rem(3);
        top: rem(-5);
        width: rem(30);
        height: rem(30);
      }
    }
    li:first-child .order {
      color: #fcc63f;
    }
    li:nth-child(2) .order {
      color: #ddd;
    }
    li:nth-child(3) .order {
      color: #f2b74e;
    }
  }
  #word_rank {
    display: none;
    ul {
      display: flex;
      color: #666;
      justify-content: space-between;
      font-size: rem(14);
      line-height: rem(25);
      li {
        width: rem(60);
        text-align: center;
      }
      li:nth-child(3) {
        width: rem(80);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    ul:first-child {
      color: #333;
      font-size: rem(16);
      line-height: rem(30);
      padding-top: rem(10);
    }
  }
}

.detail{
  background-color: #feeed1;
  border-radius:0 0 rem(5) rem(5);
  padding: rem(20);
  margin-bottom: rem(50);
  display: none;
  .return{
    padding-bottom: rem(10);
    position: relative;
    left: 0;
    top: 0;
  }
  .return:before,.return:after{
    content: "";
    position: absolute;
  }
  .return:before{
    top: 0;
    left:rem(-24);
    border: rem(10) solid transparent;
    border-right-color: #333;
  }
  .return:after{
    top:rem(2);
    left:rem(-20);
    border: rem(8) solid transparent;
    border-right-color: #feeed1;
  }
}

.activity_des {
  background-color: #feeed1;
  padding: rem(0) rem(10) rem(20);
  margin-bottom: rem(50);
  border-radius: rem(5);
  position: relative;
  left: 0;
  top: 0;
  .activity_des_title {
    position: relative;
    left: 0;
    top: rem(-28);
    margin: 0 auto;
    width: rem(110);
    text-align: center;
    height: rem(36);
    line-height: rem(36);
    background-color: #ffcb52;
    font-size: rem(16);
    color: #333;
    z-index: 2;
    h2 {
      position: relative;
      z-index: 1;
    }
    h2:after, h2:before {
      content: "";
      position: absolute;
      display: block;
      border-style: solid;
      border-color: #e8b338 transparent transparent transparent;
      bottom: rem(-8);
      z-index: 4;
    }
    h2:before {
      right: rem(102);
      border-width: rem(8) 0 0 rem(8);
    }
    h2:after {
      left: rem(102);
      border-width: rem(8) rem(8) 0 0;
    }
  }
  .activity_des_title:before, .activity_des_title:after {
    content: "";
    position: absolute;
    display: block;
    top: rem(8);
    border: rem(18) solid #ffcb52;
  }
  .activity_des_title:before {
    left: rem(-40);
    //border-left-width: rem(18);
    border-right-width: rem(30);
    border-left-color: transparent;
  }
  .activity_des_title:after {
    right: rem(-40);
    border-left-width: rem(30);
    //border-right-width:rem(18);
    border-right-color: transparent;
  }
  .content_img div {
    margin-bottom: rem(10);
    width: 100%;
    img {
      width: 100%;
    }
  }
}

.footer {
  background-color: #fff;
  box-shadow: rem(2) rem(-2) rem(5) #e5e5e5;
  height: rem(50);
  position: fixed;
  left: 0;
  width: 100%;
  bottom: 1.06667rem;
  a {
    border: 1px solid #fd8403;
    display: inline-block;
    width: 45%;
    height: rem(35);
    text-align: center;
    line-height: rem(35);
    border-radius: rem(5);
    flex-grow: 1;
  }
  a:first-child {
    color: #fd8403;
    font-size: rem(16);

  }
  a:last-child {
    background-color: #fd8403;
    color: #fff;
  }

}
/* 用户报名上传照片 */
.picture_select {
  padding: rem(10) 0;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;

  .change_picture {
    width: rem(120);
    line-height: rem(30);
    height: rem(30);
    text-align: center;
    font-size: rem(16);
    color: #fff;
    background-color: #0099ff;
    border-radius: rem(3);
    position: relative;
    left: 0;
    top: 0;
    input{
      position: absolute;
      left: 0;
      top:0;
      opacity: 0;
      width: 100%;
      height: 100%;
    }
  }
  p {
    color: #666;
    line-height: rem(30);
  }
  .picture_site {
    width: rem(80);
    position: relative;
    left: 0;
    top: 0;
    img {
      width: rem(80);

    }
    /* 删除位置 */
    .delete {
      width: rem(20);
      height: rem(20);
      border-radius: 50%;
      background-color: #3e3e76;
      position: absolute;
      right: rem(-5);
      top: rem(-5);
    }
    /* 叉号 */
    .delete:before, .delete:after {
      width: rem(3);
      height: rem(18);
      position: absolute;
      background-color: #fff;
      content: "";
      left: rem(8);
      top: 1px;
    }
    .delete:after {
      transform: rotate(43deg);
    }
    .delete:before {
      transform: rotate(-43deg);
    }
  }
}

#up_img {
  height: rem(470);
  top: rem(30);
  > h2 {
    margin-top: rem(15);
  }
  .select_content {
    padding-bottom: 0;
    .works_msg {
      p {
        padding: rem(5) 0;
        display: flex;
        justify-content: center;
        line-height: rem(30);
        span {
          width: rem(80);
        }
        input {
          flex-grow: 1;
          border: 1px solid #333;
        }
      }
      p:last-child {
        textarea {
          height: rem(70);
          flex-grow: 1;
          border: 1px solid #333;
        }
      }
    }
    .picture_select {
      padding: rem(10) 0;
      width: rem(120);
      margin: 0 auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;

      .change_picture {
        width: rem(120);
        line-height: rem(30);
        height: rem(30);
        text-align: center;
        font-size: rem(16);
        color: #fff;
        background-color: #0099ff;
        border-radius: rem(3);
      }
      p {
        color: #666;
        line-height: rem(30);
      }
      .picture_site {
        width: rem(80);
        position: relative;
        left: 0;
        top: 0;
        img {
          width: rem(80);

        }
        /* 删除位置 */
        .delete {
          width: rem(20);
          height: rem(20);
          border-radius: 50%;
          background-color: #3e3e76;
          position: absolute;
          right: rem(-5);
          top: rem(-5);
        }
        /* 叉号 */
        .delete:before, .delete:after {
          width: rem(3);
          height: rem(18);
          position: absolute;
          background-color: #fff;
          content: "";
          left: rem(8);
          top: 1px;
        }
        .delete:after {
          transform: rotate(43deg);
        }
        .delete:before {
          transform: rotate(-43deg);
        }
      }
    }
  }
}

/* 截图区域操作 */
.img_container {
  z-index: 3;
  width: 100%;
  min-height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #fff;
  display: none;
  overflow: auto;
  .save {
    display: flex;
    justify-content: flex-end;
    padding: rem(5);
    > p {
      background-color: #0099ff;
      color: #fff;
      height: rem(30);
      line-height: rem(30);
      width: rem(50);
      text-align: center;
      border-radius: rem(2);
    }
  }
  .img_preview {
    width: rem(200);
    height: rem(200);
    overflow: hidden;
  }
}

.activity_des_content li {
  margin-bottom: 0;
}
.pop_user_msg{
  top: 2.2rem;
}
.join-slogan{
  text-align: left;
  border: 1px solid #333;
  width: 5.06667rem;
  height: 1.8rem;
  line-height: .8rem;
  color: #666;
  margin: 0 0 0 .26667rem;
  padding-left: .26667rem;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}